package com.myhome.controller;

import com.myhome.domain.SysMenu;
import com.myhome.domain.SysUser;
import com.myhome.service.SysMenuService;
import com.myhome.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author QYiXin
 * @Date 2021 10 09 12 59
 **/
@RestController
public class TestController {
    @Autowired
    SysUserService sysUserService;
    @Autowired
    SysMenuService sysMenuService;
    @GetMapping("/test")
    public Object test(){
        List<SysMenu> menus = sysMenuService.getMenusByUserId(1010101010101010101L);
        return menus;
    }
}

